package sk.stuba.fiit.repka.dp.db;

import java.sql.SQLException;
import java.util.List;

/**
 * 
 * @author Igor Repka
 * design pattern STRATEGY
 */
public interface DataManipulator {
	
	/**
	 * Insert data to DB
	 * @param query
	 * @return
	 */
	public boolean insert() throws SQLException;
	
	/**
	 * Update data in DB
	 * @param query
	 * @return
	 */
	public boolean update(List<? extends Object> toUpdate) throws SQLException;
	
	/**
	 * Delete data from DB
	 * @param query
	 * @return
	 */
	public boolean delete(String query);
}
